﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 工作人员
        /// </summary>
        [Required]
        public string Worker { get; set; }

        /// <summary>
        /// 被访问者
        /// </summary>
        [Required]
        public string user { get; set; }

        /// <summary>
        /// 访问地址
        /// </summary>
        [Required]
        public string Address { get; set; }

        /// <summary>
        /// 访问时间
        /// </summary>
        [Required]
        public DateTime AddTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Required]
        public DateTime workingtime { get; set; }

        /// <summary>
        /// 结果：1(理想)
        /// 2（不理想）
        /// </summary>
        [Required]
        public int results { get; set; }

        /// <summary>
        /// 被访问者身份证
        /// </summary>
        [Required]
        public string IDNumber { get; set; }

        /// <summary>
        /// 关系有无
        /// </summary>
        [Required]
        public int relationship { get; set; }

        /// <summary>
        /// 是否在外务工
        /// </summary>
        [Required]
        public bool IsOut { get; set; }
    }
}
